/*
 * main.cpp
 *
 *  Created on: Sep 16, 2013
 *      Author: andrewts
 */

#include <iostream>
#include <stdio.h>
#include "complex.h"

using namespace std;

int main(int argc, char **argv)
{
	Complex a[3];
	double re, im;

	test_class_Complex();

	for (unsigned int i = 0; i < sizeof a / sizeof a[0]; ++i) {
		scanf("%lf %lf", &re, &im);
		a[i] = Complex(re, im);
	}

	cout << "sizeof a = " << sizeof a << ", sizeof a[0] = " << sizeof a[0] << endl;

	Complex discr = a[1] * a[1] - a[0] * a[2] * 4;

	cout << "Discr = " << discr << endl;

	Complex x[2];

	return 0;
}
